import axios from '@/utils/ajaxRequest'

//获取所有的课程
export const getCourse = ()=>{
    return axios.request({
        url:'/course'
    })
}

//获取课程的详情

export const getCourseDetail = (id)=>{
    return axios.request({
        url:`/course/detail/${id}` 
    })
}